package cn.jiyun.controller;import cn.jiyun.common.config.Result;
import cn.jiyun.entity.XmDistribution;
import cn.jiyun.entity.XmDistributionWeather;
import cn.jiyun.service.IXmDistributionService;
import cn.jiyun.service.IXmDistributionWeatherService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2024-11-22
 */
@RestController
@RequestMapping("/xm-user-login/xm-distribution-weather")
public class XmDistributionWeatherController {

    @Autowired
    private IXmDistributionWeatherService xmDistributionWeatherService;

    @RequestMapping("/findPage2")
    public Result findPage(Integer pageNum,Integer pageSize,@RequestBody XmDistributionWeather distributionWeather){
        Page page = xmDistributionWeatherService.findPage(pageNum,pageSize,distributionWeather);
        return Result.ok(page);
    }

}
